package VUTHANHPHUC_EXAMPLE_OC;

import java.io.StringBufferInputStream;
import java.util.Scanner;

public class Students {
	public String MaSV;
	public String Hoten;
	public String Email;
	public String Phone;

	public Students(String MaSV, String Hoten) {
		this.MaSV = MaSV;
		this.Hoten = Hoten;
		Email = "abc@gmail.com";
		Phone = "123456789";
	}

	public Students(String MaSV, String Hoten, String Email, String Phone) {
		this.MaSV = MaSV;
		this.Hoten = Hoten;
		this.Email = Email;
		this.Phone = Phone;
	}

	public static void main(String[] args) {
	Students student1 = new Students("SV01", "Hoàng Văn Thanh");
	Students student2 = new Students("SV02", "Phạm Thị Thùy Linh");
	Students student3 = new Students("SV03", "Trần Văn Hiếu");
	Students student4 = new Students("SV04", "Nguyền Văn Hùng");
	
	//Thay đổi thuộc tính
	student1 = new Students("SV01", "Hoàng Văn Thanh", "thanhhv@gmail.com", "0988 123 456");
	student2 = new Students("SV02", "Phạm Thị Thùy LInh", "linhptt@gmail.com", "0988 123 457");
	student3 = new Students("SV03", "Trần Văn Hiếu", "hieutv@gmail.com", "0988 123 458");
	student4 = new Students("SV04", "Nguyễn Văn Hùng", "hungnv@gmail.com", "0988 123 459");
	
	System.out.println("------Student1--------");
	System.out.println("+MaSV:"+student1.MaSV);
	System.out.println("+Hoten:"+student1.Hoten);
	System.out.println("+Email:"+student1.Email);
	System.out.println("+Phone:"+student1.Phone);
	
	System.out.println("------Student2--------");
	System.out.println("+MaSV:"+student2.MaSV);
	System.out.println("+Hoten:"+student2.Hoten);
	System.out.println("+Email:"+student2.Email);
	System.out.println("+Phone:"+student2.Phone);
	
	System.out.println("------Student3--------");
	System.out.println("+MaSV:"+student3.MaSV);
	System.out.println("+Hoten:"+student3.Hoten);
	System.out.println("+Email:"+student3.Email);
	System.out.println("+Phone:"+student3.Phone);
	
	System.out.println("------Student4--------");
	System.out.println("+MaSV:"+student4.MaSV);
	System.out.println("+Hoten:"+student4.Hoten);
	System.out.println("+Email:"+student4.Email);
	System.out.println("+Phone:"+student4.Phone);
}
}
